-- GENERATED SPELL FOR [Moonkin] --


function spell0_10158(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_10158', 555, 1)
end

function Sorts_10158(pUnit, Event)
local choix_sorts_10158 = math.random(0, 0)
if choix_sorts_10158 == 0 then
pUnit:RegisterEvent('spell0_10158', 1, 1)
end
end

function mob10158_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10158', math.random(1500, 3000), 1)
end

function mob10158_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10158_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10158_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10158, 1, 'mob10158_Action')
RegisterUnitEvent(10158, 2, 'mob10158_Leave')
RegisterUnitEvent(10158, 3, 'mob10158_Kill')
RegisterUnitEvent(10158, 4, 'mob10158_Die')
